package Lesson;

public class Demo8 {
    public static void main(String[] args) {
        int max = getMax(10,20);
        int min = getMin(10,20);
        System.out.println(max);
        System.out.println(min);
    }

    public static int getMax(int a, int b){
        return a>b?a:b;
    }

    public static int getMin(int a, int b){
        return a<b?a:b;
    }
}
